import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_BI

/**
 * 产品分类销量分析
 */
export function biProductCategoryAPI(data) {
	return request({
		url: BASE_URL + "biProduct/contractProductRanKing",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 产品分类销量分析 --详情
 */
export function biProductCategoryListAPI(data) {
	return request({
		url: BASE_URL + "biCustomer/queryProductTypeList",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 产品详情列表
 * @param {*} data
 */
export function biProductDetailListAPI(data) {
	return request({
		url: BASE_URL + "crmBiSearch/searchProductPageList",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 产品成交周期客户数
 * @param {*} data
 */
export function biProductCircleDetailListAPI(data) {
	return request({
		url: BASE_URL + "crmBiSearch/queryProductSucceedCustomerList ",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}
